package com.css.fxfzypg.manage.building.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.manage.building.repository.entity.BuildingEntity;
import com.css.fxfzypg.manage.building.vo.BuildingParams;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface BuildingService {
    boolean saveBuilding(BuildingEntity buildingEntity) throws UnsupportedEncodingException;

    Map<String,Object> querySubmitOrNot(String submitFlag, String taskCode, int curPage, int pageSize, String userId);

    boolean updateIsSubmit(Map<String,String> map);

    BuildingEntity queryData(String id);

    boolean modifyData(BuildingEntity buildingEntity);

    Map<String, Object> queryBuildingData(HttpServletRequest request, BuildingParams queryParams, int curPage, int pageSize);

    boolean deleteBuilding(String ids);

    boolean saveAndSubmit(BuildingEntity buildingEntity) throws UnsupportedEncodingException;

    boolean modifyAndSubmit(BuildingEntity buildingEntity);
}
